package com.dotc.patterndemo.action.visit;

import android.util.Log;

import com.dotc.patterndemo.entity.Fruit;
import com.dotc.patterndemo.entity.Fruitt.Apple;
import com.dotc.patterndemo.entity.Fruitt.Banana;
import com.dotc.patterndemo.entity.Fruitt.Orange;

public class Visit {


    //苹果计价
    public int sell(Apple apple){
        Log.d("LUO","apple's price: ￥50");
        return 50;
    }

    //桔子计价
    public int sell(Orange orange){
        Log.d("LUO","orange's price: ￥20");
        return 20;
    }

    //香蕉计价
    public int sell(Banana banana){
        Log.d("LUO","banana's price: ￥30");
        return 30;
    }

    //其它水果计价
    public int sell(Fruit fruit){
        Log.d("LUO","other price: ￥10");
        return 10;
    }


}
